package com.threeti.jiayusms.domain.service.communicationfunction;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.threeti.jiayusms.domain.model.CommunicationFunction;
import com.threeti.jiayusms.infrastructure.communicationfunction.CommunicationFunctionDao;

@Service
@Transactional
public class CommunicationFunctionUpdateServiceImpl implements
		CommunicationFunctionUpdateService {

	
	@Autowired
	private CommunicationFunctionDao dao;

	@Override
	public CommunicationFunction storeCommunicationFunction(CommunicationFunction communicationFunction) {
		return dao.store(communicationFunction);
	}
	
	@Override
	public void removeCommunicationFunctionBy(Long functionTemplateId) {
		dao.removeBy(functionTemplateId);
	}
}
